package service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import dao.UserDao;
import pojo.User;
import service.UserManager;
@Service(value="userManager")
public class UserManagerImpl implements UserManager {
	@Resource(name="user")
	private UserDao userDao;
	
	@Override
	public User addUser(User user) {
		return userDao.addUser(user);
	}

	@Override
	public User loadUser(String id) {
		return userDao.loadUser(id);
	}

}
